package com.hth.stockspiderv3.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class StockCallAuctionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StockCallAuctionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andStockCodeIsNull() {
            addCriterion("stock_code is null");
            return (Criteria) this;
        }

        public Criteria andStockCodeIsNotNull() {
            addCriterion("stock_code is not null");
            return (Criteria) this;
        }

        public Criteria andStockCodeEqualTo(String value) {
            addCriterion("stock_code =", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotEqualTo(String value) {
            addCriterion("stock_code <>", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeGreaterThan(String value) {
            addCriterion("stock_code >", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeGreaterThanOrEqualTo(String value) {
            addCriterion("stock_code >=", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeLessThan(String value) {
            addCriterion("stock_code <", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeLessThanOrEqualTo(String value) {
            addCriterion("stock_code <=", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeLike(String value) {
            addCriterion("stock_code like", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotLike(String value) {
            addCriterion("stock_code not like", value, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeIn(List<String> values) {
            addCriterion("stock_code in", values, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotIn(List<String> values) {
            addCriterion("stock_code not in", values, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeBetween(String value1, String value2) {
            addCriterion("stock_code between", value1, value2, "stockCode");
            return (Criteria) this;
        }

        public Criteria andStockCodeNotBetween(String value1, String value2) {
            addCriterion("stock_code not between", value1, value2, "stockCode");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIsNull() {
            addCriterion("company_name is null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIsNotNull() {
            addCriterion("company_name is not null");
            return (Criteria) this;
        }

        public Criteria andCompanyNameEqualTo(String value) {
            addCriterion("company_name =", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotEqualTo(String value) {
            addCriterion("company_name <>", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameGreaterThan(String value) {
            addCriterion("company_name >", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameGreaterThanOrEqualTo(String value) {
            addCriterion("company_name >=", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLessThan(String value) {
            addCriterion("company_name <", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLessThanOrEqualTo(String value) {
            addCriterion("company_name <=", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameLike(String value) {
            addCriterion("company_name like", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotLike(String value) {
            addCriterion("company_name not like", value, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameIn(List<String> values) {
            addCriterion("company_name in", values, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotIn(List<String> values) {
            addCriterion("company_name not in", values, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameBetween(String value1, String value2) {
            addCriterion("company_name between", value1, value2, "companyName");
            return (Criteria) this;
        }

        public Criteria andCompanyNameNotBetween(String value1, String value2) {
            addCriterion("company_name not between", value1, value2, "companyName");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceIsNull() {
            addCriterion("cal_auction_price is null");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceIsNotNull() {
            addCriterion("cal_auction_price is not null");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceEqualTo(String value) {
            addCriterion("cal_auction_price =", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceNotEqualTo(String value) {
            addCriterion("cal_auction_price <>", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceGreaterThan(String value) {
            addCriterion("cal_auction_price >", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceGreaterThanOrEqualTo(String value) {
            addCriterion("cal_auction_price >=", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceLessThan(String value) {
            addCriterion("cal_auction_price <", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceLessThanOrEqualTo(String value) {
            addCriterion("cal_auction_price <=", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceLike(String value) {
            addCriterion("cal_auction_price like", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceNotLike(String value) {
            addCriterion("cal_auction_price not like", value, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceIn(List<String> values) {
            addCriterion("cal_auction_price in", values, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceNotIn(List<String> values) {
            addCriterion("cal_auction_price not in", values, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceBetween(String value1, String value2) {
            addCriterion("cal_auction_price between", value1, value2, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionPriceNotBetween(String value1, String value2) {
            addCriterion("cal_auction_price not between", value1, value2, "calAuctionPrice");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeIsNull() {
            addCriterion("cal_auction_volume is null");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeIsNotNull() {
            addCriterion("cal_auction_volume is not null");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeEqualTo(String value) {
            addCriterion("cal_auction_volume =", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeNotEqualTo(String value) {
            addCriterion("cal_auction_volume <>", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeGreaterThan(String value) {
            addCriterion("cal_auction_volume >", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeGreaterThanOrEqualTo(String value) {
            addCriterion("cal_auction_volume >=", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeLessThan(String value) {
            addCriterion("cal_auction_volume <", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeLessThanOrEqualTo(String value) {
            addCriterion("cal_auction_volume <=", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeLike(String value) {
            addCriterion("cal_auction_volume like", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeNotLike(String value) {
            addCriterion("cal_auction_volume not like", value, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeIn(List<String> values) {
            addCriterion("cal_auction_volume in", values, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeNotIn(List<String> values) {
            addCriterion("cal_auction_volume not in", values, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeBetween(String value1, String value2) {
            addCriterion("cal_auction_volume between", value1, value2, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andCalAuctionVolumeNotBetween(String value1, String value2) {
            addCriterion("cal_auction_volume not between", value1, value2, "calAuctionVolume");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceIsNull() {
            addCriterion("yesterday_price is null");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceIsNotNull() {
            addCriterion("yesterday_price is not null");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceEqualTo(String value) {
            addCriterion("yesterday_price =", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceNotEqualTo(String value) {
            addCriterion("yesterday_price <>", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceGreaterThan(String value) {
            addCriterion("yesterday_price >", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceGreaterThanOrEqualTo(String value) {
            addCriterion("yesterday_price >=", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceLessThan(String value) {
            addCriterion("yesterday_price <", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceLessThanOrEqualTo(String value) {
            addCriterion("yesterday_price <=", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceLike(String value) {
            addCriterion("yesterday_price like", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceNotLike(String value) {
            addCriterion("yesterday_price not like", value, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceIn(List<String> values) {
            addCriterion("yesterday_price in", values, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceNotIn(List<String> values) {
            addCriterion("yesterday_price not in", values, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceBetween(String value1, String value2) {
            addCriterion("yesterday_price between", value1, value2, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayPriceNotBetween(String value1, String value2) {
            addCriterion("yesterday_price not between", value1, value2, "yesterdayPrice");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioIsNull() {
            addCriterion("yesterday_volume_ratio is null");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioIsNotNull() {
            addCriterion("yesterday_volume_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioEqualTo(String value) {
            addCriterion("yesterday_volume_ratio =", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioNotEqualTo(String value) {
            addCriterion("yesterday_volume_ratio <>", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioGreaterThan(String value) {
            addCriterion("yesterday_volume_ratio >", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioGreaterThanOrEqualTo(String value) {
            addCriterion("yesterday_volume_ratio >=", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioLessThan(String value) {
            addCriterion("yesterday_volume_ratio <", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioLessThanOrEqualTo(String value) {
            addCriterion("yesterday_volume_ratio <=", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioLike(String value) {
            addCriterion("yesterday_volume_ratio like", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioNotLike(String value) {
            addCriterion("yesterday_volume_ratio not like", value, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioIn(List<String> values) {
            addCriterion("yesterday_volume_ratio in", values, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioNotIn(List<String> values) {
            addCriterion("yesterday_volume_ratio not in", values, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioBetween(String value1, String value2) {
            addCriterion("yesterday_volume_ratio between", value1, value2, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andYesterdayVolumeRatioNotBetween(String value1, String value2) {
            addCriterion("yesterday_volume_ratio not between", value1, value2, "yesterdayVolumeRatio");
            return (Criteria) this;
        }

        public Criteria andCreatedAtIsNull() {
            addCriterion("created_at is null");
            return (Criteria) this;
        }

        public Criteria andCreatedAtIsNotNull() {
            addCriterion("created_at is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedAtEqualTo(Date value) {
            addCriterion("created_at =", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotEqualTo(Date value) {
            addCriterion("created_at <>", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtGreaterThan(Date value) {
            addCriterion("created_at >", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
            addCriterion("created_at >=", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtLessThan(Date value) {
            addCriterion("created_at <", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
            addCriterion("created_at <=", value, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtIn(List<Date> values) {
            addCriterion("created_at in", values, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotIn(List<Date> values) {
            addCriterion("created_at not in", values, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtBetween(Date value1, Date value2) {
            addCriterion("created_at between", value1, value2, "createdAt");
            return (Criteria) this;
        }

        public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
            addCriterion("created_at not between", value1, value2, "createdAt");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}